import moment from "moment";

export const formatDate = (value: string | number) => {
  return moment(new Date(value).getTime()).format("YYYY年MM月DD日 hh:mm");
};

export const formatDateYMD = (value: string | number) => {
  return moment(new Date(value).getTime()).format("YYYY-MM-DD");
};
